package com.situ.stl.dao;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.situ.stl.model.Course;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface CourseMapper extends BaseMapper<Course> {
    Page<Course> selectCourseWithCoachName(Page<Course> page, @Param("ew") Wrapper<Course> queryWrapper);



    // 批量查询使用内置方法
    default List<Course> selectByIds(List<Long> ids) {
        return selectBatchIds(ids);
    }

}
